//
//  AutoScrollView.h
//  AuScrollImage
//
//  Created by mac on 14-9-30.
//  Copyright (c) 2014年 mac. All rights reserved.
//

#import <UIKit/UIKit.h>

@class AutoScrollView, ExTopMidData,SMPageControl;
@protocol AutoScrollViewDelegate <NSObject>
@optional
// 点击图片回调
- (void)autoScrollView:(AutoScrollView *)autoScrollView didSelectImageIndex:(NSInteger)index;

//活动到某个图片
- (void)autoScrollView:(AutoScrollView *)autoScrollView didScrollToImageData:(ExTopMidData *)exData;

@end

@interface AutoScrollView : UIView
@property (nonatomic, strong)NSArray *images;
@property (nonatomic, assign) NSTimeInterval rollingDelayTime;
@property (nonatomic, weak) id<AutoScrollViewDelegate> delegate;
@property (nonatomic, assign) SMPageControl *pageControl;

- (id)initWithFrame:(CGRect)frame placeholderImage:(UIImage *)image andRight:(BOOL)isRight;

- (id)initWithFrame:(CGRect)frame images:(NSArray *)images placeholderImage:(UIImage *)image;
- (void)reloadWithData:(NSArray *)images;
- (void)startRolling;

@end
